package per.ace.annotation.dao;

import org.springframework.stereotype.Component;
import per.ace.annotation.model.User;

@Component
public class UserDao {
    /**
     * 模拟Dao
     * @param id
     * @return
     */
    public User find(String id){
        User u = new User();
        u.setId(id);
        u.setName("alex");
        return u;
    }
}
